package com.nokia.pc3.core.transformers;

import java.util.Stack;

import com.nokia.pc3.core.format.input.RpmDatum;
import com.nokia.pc3.core.xform.Transformer;

/**
 * Push onto stack
 * 
 * @author jcroke
 *
 */
public class RPMPushXfm extends Transformer {
	
	public void run() {
		System.out.println("Run: " + this.getClass().getCanonicalName());
		Stack<RpmDatum> rs = getRpmStk();
		String[] inputv = getInputv();
		for (String i : inputv) {
			rs.push(new RpmDatum.Builder(i).type(getType()).build());
		}
	}
}
